package com.eve.eplus.main;

import java.util.HashMap;

import android.os.Bundle;
import android.view.Window;

import com.androidquery.AQuery;
import com.eve.eplus.R;
import com.eve.eplus.common.activity.BaseActivity;
import com.eve.eplus.common.app.Constants;
import com.eve.eplus.common.tools.LogTools;
import com.eve.eplus.sns.weibo.StatusesAPIDef;

public class ImageViewActivity extends BaseActivity
{
    private HashMap<String, String> mData;
    private AQuery aq;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_imageview_main);
        mData = (HashMap) getIntent().getSerializableExtra(
                Constants.HOME_CONTENT);
        
        aq = new AQuery(this);
        if (mData.get(StatusesAPIDef.PIC_BMIDDLE)!= null)
            aq.id(R.id.webView).progress(R.id.progressBar).webImage(
                    mData.get(StatusesAPIDef.PIC_BMIDDLE).toString());
        else if (mData.get(StatusesAPIDef.RETWEETED_PIC_BMIDDLE)!= null)
            aq.id(R.id.webView).progress(R.id.progressBar).webImage(
                    mData.get(StatusesAPIDef.RETWEETED_PIC_BMIDDLE).toString());

    }
}
